package com.ruoyi.management.mapper;

import org.apache.ibatis.annotations.Param;

import com.ruoyi.management.domain.CommissionManagementDetail;
import com.translate.mapper.IBaseMapper;

/**
 * 佣金明细Mapper接口
 * 
 * @author ruoyi
 * @date 2024-01-17
 */
public interface CommissionManagementDetailMapper extends IBaseMapper<CommissionManagementDetail>
{
	/**
     * 确认是否推荐过
     * @param userId 推荐人
     * @param  commissonManagentId 佣金管理id
     */ 
	int countByRecommendUser(
		@Param("userId") int userId,
		@Param("commissonId") int commissonManagentId
	);
}
